package com.psg.dao;

import com.psg.pojo.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressDao {

    void insert(Address address);

    Address queryDefaultAddress(@Param("userId") Integer userId);

    void updateAddress(Address defaultAddress);

    List<Address> queryAllAddressByUserId(Integer userId);

    Address queryById(int id);
}
